-- card: 5488 from stack: in -- bmap block id: 0 -- flags: 0000 -- background id: 3241 -- name: FileToClip -- part 1 (button) -- low flags: 00 -- high flags: A003 -- rect: left=79 top=300 right=322 bottom=179 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: FileToClip ----- HyperTalk script ----- on mouseUp FileToClip put the result end mouseUp -- part contents for background part 16 ----- text ----- FILETOCLIP XCMD version 1.1 Kevin Calhoun Paul Sundquist The FileToClip XCMD allows you to choose a text file from a standard file dialog box. Once you have chosen the text file, FileToClip opens the file and copies its contents to the clipboard. You can then paste the text into a field, into another application running concurrently under MultiFinder, or into a desk accessory (such as McSink). If an error occurs, FileToClip will return an error message as the result. Word 1 of this message will be "Error". If the text was copied successfully, FileToClip returns the full pathname of the file as the result. If you want the text to go directly to a HyperCard field without having to paste it manually, use the FileToField XCMD. FileToClip takes no parameters.